package com.hw.saweb.controller;

import com.hw.saweb.services.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: sa-token-start
 * @description:
 * @author: hewei
 * @date: 2023-09-06 11:49
 * services 层权限校验
 **/

@RestController
@RequestMapping("/service")
public class ServiceController {

    @Resource
    private UserService userService;

    @RequestMapping("/names")
    public List<String> names() {
        return userService.getNames();
    }
    @RequestMapping("/addrs")
    public List<String> addrs() {
        return userService.getAddrs();
    }
}
